package com.zhongjian.technologycal.mall.bean;

import java.util.List;

/**
 * Created by wei on 2018/1/10.
 */

public class HomeBean {

    /**
     * error_code : 0
     * error_message : 成功
     * data : {"picList":[{"ProductId":"61","Pic":"/upload/pics/f1bb2501d4294a9fa401a55bf3c1d5e8.jpg","AdvType":2,"Url":""},{"ProductId":"","Pic":"/upload/pics/1ca6b3ef50c94a43ae717344903538dd.jpg","AdvType":1,"Url":"ss"}],"tile":{"Title":"?????|?????","ProductId":"","AdvType":0,"Url":""},"products":[{"tagId":1,"tagName":"众健商城","productsOfTag":[{"id":483,"productname":"无核杏干250g","price":29,"oldprice":30,"elecnum":5,"productphotos":[{"photo":"/upload/pics/b472a99a-b188-44e4-8840-32001919b118.jpg"},{"photo":"/upload/pics/a4bf0bb7-b29e-4bbc-a3e9-7297b8092be3.jpg"},{"photo":"/upload/pics/a5a9294b-4eea-4b9f-b80b-c8be922cd2aa.jpg"}]},{"id":304,"productname":"石板大米 优质   10kg装 ","price":160,"oldprice":168,"elecnum":10,"productphotos":[{"photo":"/upload/pics/8a4fcf38-b254-4078-94a6-1c7380b69d53.jpg"},{"photo":"/upload/pics/4406425a-00f3-4444-b34f-21178edff20f.jpg"}]},{"id":101,"productname":"槐花精油皂","price":289,"oldprice":328,"elecnum":144,"productphotos":[{"photo":"/upload/pics/0705eb30-f383-412b-a664-76d11b6aff8f.jpg"},{"photo":"/upload/pics/4e69fd4a-0708-4de7-9c6b-7d138ea5cb2f.jpg"},{"photo":"/upload/pics/da220630-45f9-457e-992c-56be03b70bc5.jpg"}]},{"id":494,"productname":"【包邮】黑小麦大列巴500g","price":38,"oldprice":42,"elecnum":6,"productphotos":[{"photo":"/upload/pics/66c354e0-b9d0-4ef9-ac80-e9515db57066.jpg"},{"photo":"/upload/pics/ab120afc-b32c-437d-8edb-dcf586df0ccb.jpg"},{"photo":"/upload/pics/d19f3bea-0905-4120-b3e5-3ef6abcbd187.jpg"},{"photo":"/upload/pics/81692172-8e4e-465e-b044-75a498678d4a.jpg"}]}]},{"tagId":3,"tagName":"赠品专区","productsOfTag":[{"id":254,"productname":"团购·粥米   四盒送煲粥神器","price":312,"oldprice":368,"elecnum":0,"productphotos":[{"photo":"/upload/pics/66b36c6d-07c7-4dda-a3ad-1faff52bf438.jpg"},{"photo":"/upload/pics/c8bbff14-5990-4627-9950-43a173011585.jpg"},{"photo":"/upload/pics/2c21b6c7-a14d-44f9-a7f4-b8e2eb21b1ee.jpg"}]}]}]}
     */

    private int error_code;
    private String error_message;
    private DataBean data;

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * picList : [{"ProductId":"61","Pic":"/upload/pics/f1bb2501d4294a9fa401a55bf3c1d5e8.jpg","AdvType":2,"Url":""},{"ProductId":"","Pic":"/upload/pics/1ca6b3ef50c94a43ae717344903538dd.jpg","AdvType":1,"Url":"ss"}]
         * tile : {"Title":"?????|?????","ProductId":"","AdvType":0,"Url":""}
         * products : [{"tagId":1,"tagName":"众健商城","productsOfTag":[{"id":483,"productname":"无核杏干250g","price":29,"oldprice":30,"elecnum":5,"productphotos":[{"photo":"/upload/pics/b472a99a-b188-44e4-8840-32001919b118.jpg"},{"photo":"/upload/pics/a4bf0bb7-b29e-4bbc-a3e9-7297b8092be3.jpg"},{"photo":"/upload/pics/a5a9294b-4eea-4b9f-b80b-c8be922cd2aa.jpg"}]},{"id":304,"productname":"石板大米 优质   10kg装 ","price":160,"oldprice":168,"elecnum":10,"productphotos":[{"photo":"/upload/pics/8a4fcf38-b254-4078-94a6-1c7380b69d53.jpg"},{"photo":"/upload/pics/4406425a-00f3-4444-b34f-21178edff20f.jpg"}]},{"id":101,"productname":"槐花精油皂","price":289,"oldprice":328,"elecnum":144,"productphotos":[{"photo":"/upload/pics/0705eb30-f383-412b-a664-76d11b6aff8f.jpg"},{"photo":"/upload/pics/4e69fd4a-0708-4de7-9c6b-7d138ea5cb2f.jpg"},{"photo":"/upload/pics/da220630-45f9-457e-992c-56be03b70bc5.jpg"}]},{"id":494,"productname":"【包邮】黑小麦大列巴500g","price":38,"oldprice":42,"elecnum":6,"productphotos":[{"photo":"/upload/pics/66c354e0-b9d0-4ef9-ac80-e9515db57066.jpg"},{"photo":"/upload/pics/ab120afc-b32c-437d-8edb-dcf586df0ccb.jpg"},{"photo":"/upload/pics/d19f3bea-0905-4120-b3e5-3ef6abcbd187.jpg"},{"photo":"/upload/pics/81692172-8e4e-465e-b044-75a498678d4a.jpg"}]}]},{"tagId":3,"tagName":"赠品专区","productsOfTag":[{"id":254,"productname":"团购·粥米   四盒送煲粥神器","price":312,"oldprice":368,"elecnum":0,"productphotos":[{"photo":"/upload/pics/66b36c6d-07c7-4dda-a3ad-1faff52bf438.jpg"},{"photo":"/upload/pics/c8bbff14-5990-4627-9950-43a173011585.jpg"},{"photo":"/upload/pics/2c21b6c7-a14d-44f9-a7f4-b8e2eb21b1ee.jpg"}]}]}]
         */

        private TileBean tile;
        private List<PicListBean> picList;
        private List<ProductsBean> products;

        public TileBean getTile() {
            return tile;
        }

        public void setTile(TileBean tile) {
            this.tile = tile;
        }

        public List<PicListBean> getPicList() {
            return picList;
        }

        public void setPicList(List<PicListBean> picList) {
            this.picList = picList;
        }

        public List<ProductsBean> getProducts() {
            return products;
        }

        public void setProducts(List<ProductsBean> products) {
            this.products = products;
        }

        public static class TileBean {
            /**
             * Title : ?????|?????
             * ProductId :
             * AdvType : 0
             * Url :
             */

            private String Title;
            private String ProductId;
            private int AdvType;
            private String Url;

            public String getTitle() {
                return Title;
            }

            public void setTitle(String Title) {
                this.Title = Title;
            }

            public String getProductId() {
                return ProductId;
            }

            public void setProductId(String ProductId) {
                this.ProductId = ProductId;
            }

            public int getAdvType() {
                return AdvType;
            }

            public void setAdvType(int AdvType) {
                this.AdvType = AdvType;
            }

            public String getUrl() {
                return Url;
            }

            public void setUrl(String Url) {
                this.Url = Url;
            }
        }

        public static class PicListBean {
            /**
             * ProductId : 61
             * Pic : /upload/pics/f1bb2501d4294a9fa401a55bf3c1d5e8.jpg
             * AdvType : 2
             * Url :
             */

            private String ProductId;
            private String Pic;
            private int AdvType;
            private String Url;

            public String getProductId() {
                return ProductId;
            }

            public void setProductId(String ProductId) {
                this.ProductId = ProductId;
            }

            public String getPic() {
                return Pic;
            }

            public void setPic(String Pic) {
                this.Pic = Pic;
            }

            public int getAdvType() {
                return AdvType;
            }

            public void setAdvType(int AdvType) {
                this.AdvType = AdvType;
            }

            public String getUrl() {
                return Url;
            }

            public void setUrl(String Url) {
                this.Url = Url;
            }
        }

        public static class ProductsBean {
            /**
             * tagId : 1
             * tagName : 众健商城
             * productsOfTag : [{"id":483,"productname":"无核杏干250g","price":29,"oldprice":30,"elecnum":5,"productphotos":[{"photo":"/upload/pics/b472a99a-b188-44e4-8840-32001919b118.jpg"},{"photo":"/upload/pics/a4bf0bb7-b29e-4bbc-a3e9-7297b8092be3.jpg"},{"photo":"/upload/pics/a5a9294b-4eea-4b9f-b80b-c8be922cd2aa.jpg"}]},{"id":304,"productname":"石板大米 优质   10kg装 ","price":160,"oldprice":168,"elecnum":10,"productphotos":[{"photo":"/upload/pics/8a4fcf38-b254-4078-94a6-1c7380b69d53.jpg"},{"photo":"/upload/pics/4406425a-00f3-4444-b34f-21178edff20f.jpg"}]},{"id":101,"productname":"槐花精油皂","price":289,"oldprice":328,"elecnum":144,"productphotos":[{"photo":"/upload/pics/0705eb30-f383-412b-a664-76d11b6aff8f.jpg"},{"photo":"/upload/pics/4e69fd4a-0708-4de7-9c6b-7d138ea5cb2f.jpg"},{"photo":"/upload/pics/da220630-45f9-457e-992c-56be03b70bc5.jpg"}]},{"id":494,"productname":"【包邮】黑小麦大列巴500g","price":38,"oldprice":42,"elecnum":6,"productphotos":[{"photo":"/upload/pics/66c354e0-b9d0-4ef9-ac80-e9515db57066.jpg"},{"photo":"/upload/pics/ab120afc-b32c-437d-8edb-dcf586df0ccb.jpg"},{"photo":"/upload/pics/d19f3bea-0905-4120-b3e5-3ef6abcbd187.jpg"},{"photo":"/upload/pics/81692172-8e4e-465e-b044-75a498678d4a.jpg"}]}]
             */

            private int tagId;
            private String tagName;
            private List<ProductsOfTagBean> productsOfTag;

            public int getTagId() {
                return tagId;
            }

            public void setTagId(int tagId) {
                this.tagId = tagId;
            }

            public String getTagName() {
                return tagName;
            }

            public void setTagName(String tagName) {
                this.tagName = tagName;
            }

            public List<ProductsOfTagBean> getProductsOfTag() {
                return productsOfTag;
            }

            public void setProductsOfTag(List<ProductsOfTagBean> productsOfTag) {
                this.productsOfTag = productsOfTag;
            }

            public static class ProductsOfTagBean {
                /**
                 * id : 483
                 * productname : 无核杏干250g
                 * price : 29.0
                 * oldprice : 30.0
                 * elecnum : 5
                 * productphotos : [{"photo":"/upload/pics/b472a99a-b188-44e4-8840-32001919b118.jpg"},{"photo":"/upload/pics/a4bf0bb7-b29e-4bbc-a3e9-7297b8092be3.jpg"},{"photo":"/upload/pics/a5a9294b-4eea-4b9f-b80b-c8be922cd2aa.jpg"}]
                 */

                private int id;
                private String productname;
                private double price;
                private double oldprice;
                private double elecnum;
                private List<ProductphotosBean> productphotos;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getProductname() {
                    return productname;
                }

                public void setProductname(String productname) {
                    this.productname = productname;
                }

                public double getPrice() {
                    return price;
                }

                public void setPrice(double price) {
                    this.price = price;
                }

                public double getOldprice() {
                    return oldprice;
                }

                public void setOldprice(double oldprice) {
                    this.oldprice = oldprice;
                }

                public double getElecnum() {
                    return elecnum;
                }

                public void setElecnum(double elecnum) {
                    this.elecnum = elecnum;
                }

                public List<ProductphotosBean> getProductphotos() {
                    return productphotos;
                }

                public void setProductphotos(List<ProductphotosBean> productphotos) {
                    this.productphotos = productphotos;
                }

                public static class ProductphotosBean {
                    /**
                     * photo : /upload/pics/b472a99a-b188-44e4-8840-32001919b118.jpg
                     */

                    private String photo;

                    public String getPhoto() {
                        return photo;
                    }

                    public void setPhoto(String photo) {
                        this.photo = photo;
                    }
                }
            }
        }
    }
}
